package com.demo.service;

import com.demo.entity.AjaxResult;
import com.demo.entity.OrderLog;
import com.demo.entity.TbGoods;

public interface TbGoodsService {

    /**
     * 通过id查询商品
     * @param goodsId
     * @return
     */
    AjaxResult findById(Long goodsId);

    AjaxResult updateGoods(TbGoods tbGoods);

    /**
     * 添加商品库存
     * @param tbGoods
     * @return
     */
    AjaxResult insertGoods(TbGoods tbGoods);

    /**
     * 添加日志
     * @param orderLog
     * @return
     */
    AjaxResult saveLog(OrderLog orderLog);
}
